package com.ruoyi.ihome.domain;

import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 区域对象 ih_district
 * 
 * @author mage
 * @date 2024-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class District extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区域id */
    private Long id;

    /** 区域名 */
    @Excel(name = "区域名")
    private String district;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private BigDecimal latitude;

    /** 区域分类id */
    private Long districtTypeId;

    private DistrictType districtType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }
    public void setLongitude(BigDecimal longitude) 
    {
        this.longitude = longitude;
    }

    public BigDecimal getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(BigDecimal latitude) 
    {
        this.latitude = latitude;
    }

    public BigDecimal getLatitude() 
    {
        return latitude;
    }
    public void setDistrictTypeId(Long districtTypeId) 
    {
        this.districtTypeId = districtTypeId;
    }

    public Long getDistrictTypeId() 
    {
        return districtTypeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("district", getDistrict())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("districtTypeId", getDistrictTypeId())
            .toString();
    }
}
